package common.codeGen;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import common.database.interfaces.BaseDAO;

@Service
public class GenService {
	@Autowired
	private BaseDAO baseDAO;
	
	private String SELECT_SQL = "SELECT   COLUMN_NAME FROM  information_schema.COLUMNS WHERE table_name = ?";
	
	
	public List<GenColumn> getTableColumnName(String tableName) throws Exception{
		return baseDAO.getList(SELECT_SQL, GenColumn.class, tableName);
	}
}
